<?php
$view = '<div id="chucnang">';
$cn = $qt->ChucNang();
while($row_cn = mysql_fetch_array($cn)){
	$view .= '<div class="item">
	<a href="administrator.php?p='.$row_cn['url'].'">
		<img src="img/'.$row_cn['url_hinh'].'" alt="" />
		<p>'.$row_cn['ten'].'</p>
	</a></div>';
}
echo $view.'</div>';
?>